
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
	<meta charset="utf-8" />
    <link rel="stylesheet" href="https://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css">
 <style type="text/css">
                 * {margin:0;padding:0;}
         #mobile-menu {position:fixed;top:0;left:0;width:660px;height:100%;background-color:#373737;z-index:9999;}
         a:hover ,a:focus{text-decoration:none}
        .mobile-nav ul li a {color:gray;display:block;padding:1em 5%;    border-top:1px solid #4f4f4f;border-bottom:1px solid #292929;transition:all 0.2s ease-out;cursor:pointer;}#mobile-menu {position:fixed;top:0;left:0;width:660px;height:100%;background-color:#373737;z-index:9999;transition:all 0.3s ease-in;}
        .mobile-nav ul li a:hover {background-color: #23A1F6;color: #ffffff;}
        .show-nav {transform:translateX(0);}
        .hide-nav {transform:translateX(-660px);} /*侧滑关键*/
        .mobile-nav-taggle {height:175px;line-height:175px;width:175px;background-color:#23A1F6;color:#ffffff;display:inline-block;text-align:center;cursor:pointer}
        .nav.avbar-inverse{position:relative;}
        .nav-btn {position:absolute;right:20px;top:20px;}
    </style>
    <title>CJH</title>
</head>
<body>
        <!--手机导航栏-->
        <div id="mobile-menu" class="mobile-nav visible-xs visible-sm">
                <ul>
                    <li><a href="#">首页</a></li>
                    <li><a href="#">Java</a></li>
                    <li><a href="#">SVN</a></li>
                    <li><a href="#">iOS</a></li>
                </ul>
            </div>
            <!--pc导航栏-->
            <nav class="navbar-inverse visible-lg visible-md" role="navigation">
                <div class="container">
                    <div class="navbar-header">
                        <a class="navbar-brand" href="#">菜鸟教程</a>
                    </div>
                    <div>
                        <ul class="nav navbar-nav">
                            <li class="active"><a href="#">iOS</a></li>
                            <li><a href="#">SVN</a></li>
                            <li><a href="#" class="dropdown-toggle" data-toggle="dropdown">Java</a></li>
                        </ul>
                    </div>
                </div>
            </nav>
            <!--手机导航栏侧滑-->
            <div class="nav-btn visible-xs visible-sm">
                <a href="javascript: myFunction()" class="mobile-nav-taggle" id="mobile-nav-taggle">
                    <span class="glyphicon glyphicon-align-justify"></span>
                </a>
            </div>

            <div class="jumbotron masthead">
                <div class="container">
                  <h1>CJH</h1>
                  <h2>asddcervdrvdfv。</h2>
                  <p class="masthead-button-links">
                    <a class="btn btn-lg btn-primary btn-shadow" href="#" target="_blank" role="button" onclick="_hmt.push(['_trackEvent', 'masthead', 'click', 'CJH'])">CJH</a>
                  </p>
                  <ul class="masthead-links">
                    <li>
                      <a href="https://.com/" target="_blank" role="button" onclick="_hmt.push(['_trackEvent', 'masthead', 'click', 'CJH'])">CJH</a>
                    </li>
                  </ul>
                </div>
              </div>
              
    <script>
      function myFunction()
{
  var mobileMenu = $("#mobile-menu");
            if (mobileMenu.hasClass("show-nav")) {
                setTimeout(function () {
                    mobileMenu.addClass("hide-nav").removeClass("show-nav");
                }, 100)
            }
            else {
                setTimeout(function (){
                    mobileMenu.addClass("show-nav").removeClass("hide-nav");
                }, 100)
            }
}
               // $("#mobile-nav-taggle").click(myFunction())
      </script>
</body></html>
